#include "gui/layers/CarLayer.h"
#include "gui/objects/GUIRouteCar.h"

namespace gui {

CarLayer::CarLayer(CarController* carController) {
	this->carController = carController;
	this->carController->addObserver(this);
	GUIRouteCar guiRouteCar(this->carController);
	this->updateSurface(guiRouteCar);
}

CarLayer::~CarLayer() {

}

void CarLayer::notify() {
	GUIRouteCar guiRouteCar(this->carController);
	this->updateSurface(guiRouteCar);
}

}
